package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 党员管理对象 cpc_member
 * 
 * @author ruoyi
 * @date 2021-12-15
 */
public class CpcMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 党员记录编号 */
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idNumber;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String userName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String userPhone;

    /** 现居住地 */
    @Excel(name = "现居住地")
    private String userAddress;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 年龄 */
    @Excel(name = "年龄")
    private Integer age;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 民族 */
    @Excel(name = "民族")
    private String nationality;

    /** 入党日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入党日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date partyDate;

    /** 籍贯 */
    @Excel(name = "籍贯")
    private String nativeAddress;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String information;

    /** 记录创建者 */
    @Excel(name = "记录创建者")
    private String creater;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date syncTime;

    /** 社区id */
    @Excel(name = "社区id")
    private Integer communityId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setIdNumber(String idNumber) 
    {
        this.idNumber = idNumber;
    }

    public String getIdNumber() 
    {
        return idNumber;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserPhone(String userPhone) 
    {
        this.userPhone = userPhone;
    }

    public String getUserPhone() 
    {
        return userPhone;
    }
    public void setUserAddress(String userAddress) 
    {
        this.userAddress = userAddress;
    }

    public String getUserAddress() 
    {
        return userAddress;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }
    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }
    public void setNationality(String nationality) 
    {
        this.nationality = nationality;
    }

    public String getNationality() 
    {
        return nationality;
    }
    public void setPartyDate(Date partyDate) 
    {
        this.partyDate = partyDate;
    }

    public Date getPartyDate() 
    {
        return partyDate;
    }
    public void setNativeAddress(String nativeAddress) 
    {
        this.nativeAddress = nativeAddress;
    }

    public String getNativeAddress() 
    {
        return nativeAddress;
    }
    public void setInformation(String information) 
    {
        this.information = information;
    }

    public String getInformation() 
    {
        return information;
    }
    public void setCreater(String creater) 
    {
        this.creater = creater;
    }

    public String getCreater() 
    {
        return creater;
    }
    public void setSyncTime(Date syncTime) 
    {
        this.syncTime = syncTime;
    }

    public Date getSyncTime() 
    {
        return syncTime;
    }
    public void setCommunityId(Integer communityId) 
    {
        this.communityId = communityId;
    }

    public Integer getCommunityId() 
    {
        return communityId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("idNumber", getIdNumber())
            .append("userName", getUserName())
            .append("userPhone", getUserPhone())
            .append("userAddress", getUserAddress())
            .append("gender", getGender())
            .append("age", getAge())
            .append("birthDate", getBirthDate())
            .append("nationality", getNationality())
            .append("partyDate", getPartyDate())
            .append("nativeAddress", getNativeAddress())
            .append("information", getInformation())
            .append("creater", getCreater())
            .append("syncTime", getSyncTime())
            .append("communityId", getCommunityId())
            .toString();
    }
}
